package panda.client.engine;

import panda.client.enumerations.CardRarity;
import panda.client.enumerations.MagicSet;

/** Marker subclass so you can easily use instanceof to differentiate from normal MagicCards */
public class MagicCardToken extends MagicCard {
	
	private static final long serialVersionUID = 8308416065964646209L;

	public MagicCardToken() {
		// serializable voodoo
	}
	
	public MagicCardToken(MagicSet set, String name, String castingCost, String type, String bodyText,
			CardRarity rarity, String illustrator, int id) {
		super(set, name, castingCost, type, bodyText, rarity, illustrator, id);
	}

	public String toString() {
		String type = this.getType();
		String[] typeSplit = type.split(" ");
		String powerToughness = typeSplit[typeSplit.length - 1];

		return this.getName() + " [" + this.getCastingCost() + "] " + powerToughness + " from "
				+ this.getMagicSet().getName();
	}
}